<div class="bjui-pageContent">
    <div style="padding:5px;">
        <div class="clearfix">
            <div style="float:left;width:20%;height:450px;">
            	<fieldset style="height:97%;overflow:auto;">
            	<legend>系统参数</legend>
            	<BUTTON style="float:right;display:none;" onclick="refreshTree();">刷新</BUTTON>
                <ul id="argTree" class="ztree" data-toggle="ztree" 
                	width="100%" height="100%" overflow="auto"
					data-options="{
                        expandAll: false,
                        onClick: 'argTreeClick',
                        nodes:'returnTreeData'
                    }"
                >
                </ul>
                </fieldset>
            </div>
            <div id="ztree-subarg" style="float:right;width:79%;height:450px;overflow:hidden;">
                <fieldset style="height:97%;">
                <legend>参数子项配置</legend>
	                <div id="layout-arg-data" style="width:99%;height:96%; overflow:auto;margin:0 auto">
	                   
	                </div>
            	</fieldset>
            </div>
        </div>
    </div>
</div>
<!-- 菜单管理 -->
<script type="text/javascript">
var argGridData = [];

//初始化设置
var setting = {
		async: {
			enable:true,
			dataType:"json",
			url: "sys/res/argumentMgr?action=argTree"
		}
	};
var treeObj = $.fn.zTree.init($.CurrentNavtab.find("#argTree"),setting);

//刷新数数据
function refreshTree(){
	//获取树选中节点
	treeObj.reAsyncChildNodes(null, "refresh");
}
//获取树
function returnTreeData() {
    return ajaxJsonSync("sys/res/argumentMgr",{action:"argTree"});
}
//树节点点击事件
function argTreeClick(event, treeId, treeNode) {
    $(event.target).bjuiajax('doLoad', 
    		{url:"sys/res/argumentMgr?action=showDataGridByPid&superId="+treeNode.id, 
    				target:"#layout-arg-data"});
    event.preventDefault();
}

</script>